<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>警情导入</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../css/oksub.css">
    <script src="../../lib/layui/layui.js"></script>
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/application.js"></script>
    <script type="text/javascript">
        //警情导入
        layui.config({
            base:mainUri+'/caseSystem/lib/layui_exts/'
        }).extend({
            excel: 'excel'
        });
    </script>
</head>
<body>
<div class="ok-body">
    <div class="layui-form-item">
        <div class="layui-upload-drag" id="test10">
            <i class="layui-icon"></i>
            <p>点击上传，或将文件拖拽到此处</p>
            <p>请选择需要导入的excel文件</p>
            <div class="layui-hide" id="uploadDemoView">
                <hr>
                <img src="" alt="上传成功后渲染" style="max-width: 196px">
            </div>
        </div>
    </div>
</div>
<!--展示模板-->
<script type="text/html" id="LAY-excel-export-ans">
    {{# layui.each(d.data, function(file_index, item){ }}
    <blockquote class="layui-elem-quote">{{d.files[file_index].name}}</blockquote>
    <div class="layui-tab">
        <ul class="layui-tab-title">
            {{# layui.each(item, function(sheet_name, content) { }}
            <li>{{sheet_name}}</li>
            {{# }); }}
        </ul>
        <div class="layui-tab-content">
            {{# layui.each(item, function(sheet_name, content) { }}
            <div class="layui-tab-item">
                <table class="layui-table">
                    {{# layui.each(content, function(row_index, value) { }}
                    {{# var col_index = 0 }}
                    <tr>
                        {{# layui.each(value, function(col_key, val) { }}
                        <td id="table-export-{{file_index}}-{{sheet_name}}-{{row_index}}-{{col_index++}}">{{val}}</td>
                        {{# });}}
                    </tr>
                    {{# });}}
                </table>
            </div>
            {{# }); }}
        </div>
    </div>
    {{# }) }}
</script>
<script src="../../js/model.js"></script>
<script src="../../js/caseImport.js"></script>
</body>
</html>